home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global bouncH, bouncV, dirH, dirV, ballSpeed
- if bouncH > (640 - 18) then
- set dirH to -ballSpeed
- end if
- if bouncV > (480 - 18) then
- set dirV to -ballSpeed
- end if
- if bouncH < 18 then
- set dirH to ballSpeed
- end if
- if bouncV < 18 then
- set dirV to ballSpeed
- end if
- set bouncH to bouncH + dirH
- set bouncV to bouncV + dirV
- set the locH of sprite 1 to bouncH
- set the locV of sprite 1 to bouncV
- smallPause()
- if the mouseDown then
- tell the stage
- closeHide()
- end tell
- end if
- go(the frame)
- end
-
- on smallPause
- startTimer()
- repeat while the timer < 1
- nothing()
- end repeat
- end
-
- on mouseDown
- tell the stage
- closeHide()
- end tell
- end
-
- on keyDown
- tell the stage
- closeHide()
- end tell
- end
-